Open In Colab

--2020-07-09 22:00:44--  https://raw.githubusercontent.com/awarischool/br-data-science/master/image-colorizer/deoldify_wrapper.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2614 (2.6K) [text/plain]
Saving to: ‘deoldify_wrapper.py.1’

deoldify_wrapper.py 100%[===================>]   2.55K  --.-KB/s    in 0s      

2020-07-09 22:00:44 (42.9 MB/s) - ‘deoldify_wrapper.py.1’ saved [2614/2614]

Trying to import DeOldify (if installed)
No module named 'deoldify'
DeOldify not found, installing..
  Cloning DeOldify Repository...
  Opening DeOldify Folder
  Installing Colab requirements...
  Importing DeOldify
/content/deoldify_wrapper.py:42: UserWarning: WARNING: GPU not available. Activate it on Colab at Edit > Notebook Settings
  warnings.warn('WARNING: GPU not available. Activate it on Colab at Edit > Notebook Settings')
  Downloading Colorizer Model
  Initializing Colorizer
/usr/local/lib/python3.6/dist-packages/fastai/data_block.py:442: UserWarning: Your training set is empty. If this is by design, pass `ignore_empty=True` to remove this warning.
  warn("Your training set is empty. If this is by design, pass `ignore_empty=True` to remove this warning.")
/usr/local/lib/python3.6/dist-packages/fastai/data_block.py:445: UserWarning: Your validation set is empty. If this is by design, use `split_none()`
                 or pass `ignore_empty=True` when labelling to remove this warning.
  or pass `ignore_empty=True` when labelling to remove this warning.""")
Downloading: "https://download.pytorch.org/models/resnet101-5d3b4d8f.pth" to /root/.cache/torch/checkpoints/resnet101-5d3b4d8f.pth
Done!
  • The Horror of Dracula (1958) -Fonte
  • Frankenstein (1931) -Fonte
  • The Phantom of the Opera (1925) -Fonte
  • Eraserhead (1977) -Fonte
  • Invasion of the Body Snatchers (1956) -Fonte